﻿<!DOCTYPE>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=EDGE;IE=11;IE=8,chrome=1" />
    <title>设备维护</title>
    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
</head>
<body>
    <div id="mainDiv" style="margin: 0px 1px 0px 0px">
        <div class="panelSection">
            <div class="easyui-panel " title="查询区域" style="padding: 3px; width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
                <div style="margin: 3px 0px 3px 3px">
                    <div style="float: left">
                        <div class="divLabel" style="margin-bottom: 5px">
                            设备编码：</div>
                        <input id="txtSearchResourceNum" class="easyui-textbox" style="width: 120px; height: 20px" />
                    </div>
                    <div style="float: left; margin-left: 10px">
                        <div class="divLabel" style="margin-bottom: 5px">
                            设备名称：</div>
                        <input id="txtSearchResourceName" class="easyui-textbox" style="width: 120px; height: 20px" />
                    </div>
                    <div style="float: left; margin-left: 10px">
                        <div class="divLabel" style="margin-bottom: 5px">
                            设备型号：</div>
                        <select style='width: 120px; height: 20px' id='selSearchResourceFamily' data-options='editable:false,panelHeight:80'
                            class='easyui-combobox'>
                        </select>
                    </div>
                    <div style="float: left; margin-left: 10px">
                        <div class="divLabel" style="margin-bottom: 5px">
                            工区：</div>
                        <select style='width: 120px; height: 20px' id='selQueryWorkCenter' data-options='editable:false,panelHeight:80'
                            class='easyui-combobox'>
                        </select>
                    </div>
                    <div style="float: left; margin-left: 10px">
                        <div class="divLabel" style="margin-bottom: 5px">
                            班组：</div>
                        <select style='width: 120px; height: 20px' id='selQueryTeam' data-options='editable:false,panelHeight:80'
                            class='easyui-combobox'>
                        </select>
                    </div>
                    <div style="float: left; margin-left: 10px">
                        <div class="divLabel" style="margin-bottom: 5px">
                            无限能力设备：</div>
                        <select style='width: 80px; height: 20px' id='isinfinite1' data-options='value:"",editable:false,panelHeight:"auto"'
                            class='easyui-combobox'>
                            <option value="">全部</option>
                            <option value="0">未维护</option>
                            <option value="1">已维护</option>
                            <option value="2">是</option>
                            <option value="3">否</option>
                        </select>
                    </div>
                    <div style="float: left; margin-left: 10px">
                        <div class="divLabel" style="margin-bottom: 5px">
                            无分厂设备：</div>
                        <select style='width: 80px; height: 20px' id='isNotFactory' data-options='value:"0",editable:false,panelHeight:"auto"'
                            class='easyui-combobox'>
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </div>
                    <div style="float: left; margin-left: 10px">
                        <button id="btnSearch" class="easyui-linkbutton" data-options="" style="margin-top: 16px;
                            width: 80px;">
                            查询</button>
                        <button id="btnReset" class="easyui-linkbutton" data-options="" style="margin-top: 16px;
                            width: 80px;">
                            重置</button>
                    </div>
                    <div style="clear: both">
                    </div>
                </div>
            </div>
        </div>
        <div class="panelSection">
            <div class="easyui-panel " title="查询结果" style="padding: 3px; width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
                <div style="background: #fff; margin: 3px 0px 3px 3px">
                    <div style="width: 970px;" id="resDiv">
                        <table id="gdResourceInfo" class="easyui-datagrid" style="width: 100%; height: 300px;"
                            data-options="selectOnCheck:false,singleSelect:true,rownumbers:true">
                        </table>
                        <div id="pp" style="float: right" class="easyui-pagination" data-options="   
                 layout:['first','prev','next','last','manual','info'],              
                    total: 0,
                    showPageList: false,
                    showPageInfo: false,
                    showRefresh: false,
                    afterPageText:'共&nbsp{pages}&nbsp页',
                    buttons:[{
                            iconCls:'',
                            text:'Go',
                            group:'paging-tail-btns',
                            id:'pageGo'
                    }]  
                ">
                        </div>
                    </div>
                    <div style="clear: both">
                    </div>
                </div>
            </div>
        </div>
        <div class="panelSection">
            <div class="easyui-panel " title="基本属性" style="padding: 3px; width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
                <div style="margin: 3px 0px 3px 3px; float: left">
                    <div>
                        <div style="float: left">
                            <div class="divLabel" style="margin-bottom: 5px">
                                设备编码：</div>
                            <input id="txtResourceNum" class="easyui-textbox" style="width: 120px; height: 20px" />
                        </div>
                        <div style="float: left; margin-left: 10px">
                            <div class="divLabel" style="margin-bottom: 5px">
                                设备名称：</div>
                            <input id="txtResourceName" class="easyui-textbox" style="width: 120px; height: 20px" />
                        </div>
                        <div style="float: left; margin-left: 10px">
                            <div class="divLabel" style="margin-bottom: 5px">
                                设备型号：</div>
                            <select style='width: 120px; height: 20px' id='selResourceFamily' data-options='panelHeight:80'
                                class='easyui-combobox'>
                            </select>
                        </div>
                        <div style="float: left; margin-left: 10px">
                            <div class="divLabel" style="margin-bottom: 5px">
                                是否启用：</div>
                            <select style='width: 60px; height: 20px' id='selIsUse' data-options='editable:false,panelHeight:80'
                                class='easyui-combobox'>
                                <option value="0">是</option>
                                <option value="1">否</option>
                            </select>
                        </div>
                        <div style="margin-left: 10px; float: left">
                            <div class="divLabel" style="margin-bottom: 5px">
                                是否虚拟设备：</div>
                            <select style='width: 60px; height: 20px' id='isVirtual' data-options='value:0,editable:false,panelHeight:"auto"'
                                class='easyui-combobox'>
                                <option value="0">否</option>
                                <option value="1">是</option>
                            </select>
                        </div>
                    </div>
                    <div style="clear: both">
                    </div>
                    <div style="margin-top: 3px">
                        <div style="float: left">
                            <div class="divLabel" style="margin-bottom: 5px">
                                分厂：</div>
                            <select style='width: 120px; height: 20px' id='selFactory' data-options='editable:false,panelHeight:80'
                                class='easyui-combobox'>
                            </select>
                        </div>
                        <div style="float: left; margin-left: 10px">
                            <div class="divLabel" style="margin-bottom: 5px">
                                工区：</div>
                            <select style='width: 120px; height: 20px' id='selWorkCenter' data-options='editable:false,panelHeight:80'
                                class='easyui-combobox'>
                            </select>
                        </div>
                        <div style="float: left; margin-left: 10px">
                            <div class="divLabel" style="margin-bottom: 5px">
                                班组：</div>
                            <select style='width: 120px; height: 20px' id='selTeam' data-options='editable:false,panelHeight:80'
                                class='easyui-combobox'>
                            </select>
                        </div>
                        <div style="float: left; margin-left: 10px">
                            <div class="divLabel" style="margin-bottom: 5px">
                                关联产线：</div>
                            <select style='width: 130px; height: 20px' id='selProductLine' data-options='editable:false,panelHeight:80'
                                class='easyui-combobox'>
                            </select>
                        </div>
                    </div>
                    <div style="clear: both">
                    </div>
                </div>
                <div style="margin: 3px 0px 3px 3px; float: left">
                    <div style="float: left; margin-left: 10px">
                        <div class="divLabel" style="margin-bottom: 5px">
                            备注：</div>
                        <input id="txtRemark" class="easyui-textbox" style="width: 200px; height: 60px" data-options="multiline:true" />
                    </div>
                </div>
                <div style="clear: both">
                </div>
                <div style="margin: 3px 0px 3px 3px; float: left">
                    <button id="btnResourceAdd" class="easyui-linkbutton" type="button" style="width: 80px;
                        height: 26px;">
                        新增</button>
                    <button id="btnResourceUpdate" class="easyui-linkbutton" type="button" style="width: 80px;
                        height: 26px;">
                        修改</button>
                    <button id="btnBatchResUpdate" class="easyui-linkbutton" type="button" style="width: 150px;
                        height: 26px;">
                        批量维护排产参数
                    </button>
                    <button id="btnBatchParams" class="easyui-linkbutton" type="button" style="width: 150px;
                        height: 26px;">
                        设备组批参数维护
                    </button>
                    <button id="btnResourceDele" class="easyui-linkbutton" type="button" style="width: 80px;
                        height: 26px; display: none">
                        删除
                    </button>
                </div>
                <div style="margin: 3px 0px 3px 3px; float: left">
                    <div id="statusMessage" style="font-size: 14px; height: 10px; margin-top: 10px">
                    </div>
                </div>
            </div>
        </div>
        <div style="clear: both">
        </div>
        <div class="panelSection" style="width: 45%; float: left;">
            <div class="easyui-panel" title="保养信息" style="padding: 3px; width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
                <div style="margin: 3px 0px 3px 3px">
                    <div style="float: left">
                        <div class="divLabel" style="margin-bottom: 5px">
                            保养开始时间：</div>
                        <input id="txtStartTime" class="easyui-datetimebox" style="width: 150px; height: 20px"
                            data-options='editable:false,showSeconds:false' />
                    </div>
                    <div style="float: left; margin-left: 10px">
                        <div class="divLabel" style="margin-bottom: 5px">
                            保养结束时间：</div>
                        <input id="txtEndTime" class="easyui-datetimebox" style="width: 150px; height: 20px"
                            data-options='editable:false,showSeconds:false' />
                    </div>
                    <div style="float: left; margin-left: 10px">
                        <button id="btnMaintAdd" class="easyui-linkbutton" type="button" style="width: 60px;
                            height: 20px; margin-top: 17px">
                            添加</button>
                        <button id="btnMaintDele" class="easyui-linkbutton" type="button" style="width: 60px;
                            height: 20px; margin-top: 17px">
                            删除</button>
                    </div>
                </div>
                <div style="clear: both">
                </div>
                <div style="width: 550px; margin: 3px 0px 3px 3px">
                    <table id="gdMaintInfo" class="easyui-datagrid" style="width: 100%; height: 300px;"
                        data-options="rownumbers:true">
                    </table>
                    <div id="pp1" style="float: right" class="easyui-pagination" data-options="   
                 layout:['first','prev','next','last','manual','info'],              
                    total: 0,
                    showPageList: false,
                    showPageInfo: false,
                    showRefresh: false,
                    afterPageText:'共&nbsp{pages}&nbsp页',
                    buttons:[{
                            iconCls:'',
                            text:'Go',
                            group:'paging-tail-btns',
                            id:'pageGo1'
                    }]  
                ">
                    </div>
                </div>
                <div style="clear: both">
                </div>
                <div id="statusMessage1" style="font-size: 14px; height: 40px">
                </div>
            </div>
        </div>
        <div class="panelSection" style="width: 55%; float: left">
            <div class="easyui-panel " title="设备人员信息" style="padding: 3px; width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
                <div style="width: 550px;">
                    <div style="margin-bottom: 5px;">
                        人员：<div id="EmployeeCombox">
                        </div>
                        <button id="btnResAddEmp" class="easyui-linkbutton" data-options="" style="margin-left: 5px;">
                            添 加</button>
                        <button id="btnResRemoveEmp" class="easyui-linkbutton" data-options="">
                            移 除</button>
                        <button id="btnCorrect" class="easyui-linkbutton" data-options="">
                            异常纠正</button>
                    </div>
                    <table id="gdResAndEmp" class="easyui-datagrid" style="width: 100%; height: 300px;"
                        data-options="rownumbers:true">
                    </table>
                    <div id="pp2" style="float: right" class="easyui-pagination" data-options="   
                 layout:['first','prev','next','last','manual','info'],              
                    total: 0,
                    showPageList: false,
                    showPageInfo: false,
                    showRefresh: false,
                    afterPageText:'共&nbsp{pages}&nbsp页',
                    buttons:[{
                            iconCls:'',
                            text:'Go',
                            group:'paging-tail-btns',
                            id:'pageGo2'
                    }]  
                ">
                    </div>
                    <div style="clear: both;">
                    </div>
                    <div id="statusRes" style="font-size: 14px; height: 40px">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="dg" title="批量维护设备参数" style="width: 500px; height: 400px; display: none"
        data-options="iconCls:'icon-save',resizable:true">
        <form id="ff">
        <div style="padding: 10px 20px 10px 50px">
            <div style="width: 50%; margin-top: 10px; float: left">
                <div class="divLabel" style="margin-bottom: 5px">
                    日历：</div>
                <select style='width: 180px; height: 20px' id='selMakeCalendar' data-options='editable:false,panelHeight:80'
                    class='easyui-combobox'>
                </select>
            </div>
            <div style="width: 50%; margin-top: 10px; float: left">
                <div class="divLabel" style="margin-bottom: 5px">
                    下年日历：</div>
                <select style='width: 180px; height: 20px' id='selNextYearMakeCalendar' data-options='editable:false,panelHeight:80'
                    class='easyui-combobox'>
                </select>
            </div>
            <div style="width: 50%; margin-top: 10px; float: left">
                <div class="divLabel" style="margin-bottom: 5px">
                    班次：</div>
                <select style='width: 180px; height: 20px' id='selWorkShift' data-options='editable:false,panelHeight:80'
                    class='easyui-combobox'>
                </select>
            </div>
            <div style="width: 50%; margin-top: 10px; float: left">
                <div class="divLabel" style="margin-bottom: 5px">
                    瓶颈设备：</div>
                <select style='width: 180px; height: 20px' id='selIsBottLeneck' data-options='value:0,editable:false,panelHeight:80'
                    class='easyui-combobox'>
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </div>
            <div style="width: 50%; margin-top: 10px; float: left">
                <div class="divLabel" style="margin-bottom: 5px">
                    优先级：</div>
                <select style='width: 180px; height: 20px' id='selPriorityNum' data-options='value:1,editable:false,panelHeight:200'
                    class='easyui-combobox'>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                    <option value="6">6</option>
                    <option value="7">7</option>
                    <option value="8">8</option>
                    <option value="9">9</option>
                </select>
            </div>
            <div style="width: 50%; margin-top: 10px; float: left">
                <div class="divLabel" style="margin-bottom: 5px">
                    是否无限能力设备：</div>
                <select style='width: 180px; height: 20px' id='isinfinite' data-options='value:0,editable:false,panelHeight:"auto"'
                    class='easyui-combobox'>
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </div>
            <div id="bb" style="width: 100%; margin-top: 20px; float: left">
                <button class="easyui-linkbutton" type="button" style="width: 120px; height: 26px"
                    id="btnBatchSave">
                    保存</button>
                <a href="#" class="easyui-linkbutton" style="width: 60px; height: 26px" id="btnClose">
                    关闭</a>
            </div>
        </div>
        <div id="statusMessage2" style="font-size: 14px; margin: 20px 0px 0px 45px; height: 40px;
            float: left">
        </div>
        </form>
    </div>
    <!--设备组批参数维护-->
    <div id="DivDg" title="设备组批参数维护" style="width: 300px; height: 390px; display: none"
        data-options="iconCls:'icon-save',resizable:true">
        <form id="Form1">
        <div style="width: 100%; margin: 20px 0">
            <div class="divLabel" style="margin-bottom: 5px">
                允许组批加工：
                <select style='width: 180px; height: 20px' id='IsCombineBatch' name="IsCombineBatch"
                    data-options='value:0,editable:false,panelHeight:"auto"' class='easyui-combobox'>
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </div>
        </div>
        <div style="width: 100%; margin: 20px 0">
            <div class="divLabel" style="margin-bottom: 5px">
                组批数量上限：
                <input class="easyui-numberbox" name="UpperLimit" id="UpperLimit" style='width: 180px;
                    height: 20px' />
            </div>
        </div>
        <div class="panelSection">
            <div class="easyui-panel " title="组批限制" style="padding: 3px; width: 100%" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
                <div style="margin-bottom: 10px">
                    <input class="easyui-checkbox" name="CombineRule" id="CombineRule1" value="1" label="同子工艺（虚拟件号）"
                        data-options="labelPosition:'after',labelWidth:'200px'" />
                </div>
                <div style="margin-bottom: 10px">
                    <input class="easyui-checkbox" name="CombineRule" id="CombineRule2" value="2" label="同工艺名（子工艺工艺名）"
                        data-options="labelPosition:'after',labelWidth:'200px'" />
                </div>
                <div style="margin-bottom: 10px">
                    <input class="easyui-checkbox" name="CombineRule" id="CombineRule3" value="3" label="同工步名"
                        data-options="labelPosition:'after'" />
                </div>
                <div style="margin-bottom: 10px">
                    <input class="easyui-checkbox" name="CombineRule" id="CombineRule4" value="4" label="同工艺参数（检测项）"
                        data-options="labelPosition:'after',labelWidth:'200px'" />
                </div>
            </div>
        </div>
        <div id="Div2" style="width: 100%; margin-top: 10px; text-align: center">
            <button class="easyui-linkbutton" type="button" style="width: 60px; height: 26px"
                onclick="page.saveBatchParams()">
                保存</button>
            <a href="#" class="easyui-linkbutton" style="width: 60px; height: 26px" onclick="$('#DivDg').dialog('close');">
                关闭</a>
        </div>
        <div id="statusMessage3" style="font-size: 14px; height: 40px">
        </div>
        </form>
    </div>
</body>
</html>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/ReferenceJsLib.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/ApsJs/ResourceMaintPage.js?V=new Date().getTime()"
    type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/ZsJs/selectCombox.js" type="text/javascript"></script>
